/**
 * 
 */
package boundary.components;

import java.awt.Container;

import javax.swing.JFileChooser;

/**
 * @author davide
 *
 */
public class ImageFileChooser extends MyJFileChooser
{
    private static final long serialVersionUID = 3258363731425803777L;

    public ImageFileChooser()
    {
	super(0);
        this.setAccessory(new ImagePreview(this));
    }

    @Override
    public boolean isValidSelection(Container parent)
    {
	return this.showOpenDialog(parent) == JFileChooser.APPROVE_OPTION;
    }

}
